#ifndef EEPROM_H
#define EEPROM_H

#include "stm32f10x.h"

extern uint32_t Epm_initModule(void);
extern uint32_t Epm_wrtieData(uint16_t address, uint8_t data);
//extern uint32_t Epm_readData(u16 ReadAddr,u8 *pBuffer,u16 NumToRead);
extern uint32_t Epm_readData(uint16_t address, uint8_t *data);
extern void Epm_Write(uint16_t WriteAddr,uint8_t *pBuffer,uint16_t NumToWrite);
extern void Epm_Read(uint16_t ReadAddr,uint8_t *pBuffer,uint16_t NumToRead);
extern void Epm_WriteLenByte(uint16_t WriteAddr,uint32_t DataToWrite,uint16_t Len);
extern uint32_t Epm_ReadLenByte(uint16_t ReadAddr,uint16_t Len);

extern void Dbs_setIAPReusltFlag(uint32_t value);
extern uint32_t Dbs_getIAPResultFlag(void);
void Dbs_setIAPbinsize(uint8_t *Buffer);
void Dbs_getIAPbinsize(uint8_t *Buffer);

#endif

